<?php

class User extends AppModel {
	
	var $name = 'User';
	
	var $validate = array(
		'email' => array(
            'rule' => 'email',
            'message' => 'Please enter a valid email'
        ),
		'password' => array(
            'rule' => array('minLength', '6'),
            'message' => 'Mimimum 8 characters long'
        ),
		'fname' => array(
            'alphaNumeric' => array(
                'rule' => 'alphaNumeric',
                'required' => true,
                'message' => 'First Name cannot be empty'
                ),
		)
		);
		
}

?>